<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>推送测试</title>
</head>
<body>
	<form id="myForm" action="/notification/push_test.action"
		enctype="application/x-www-form-urlencoded">
		<table>
			<tr>
				<td>registrationId:</td>
				<td><input name="registrationId" type="text"></td>
			</tr>
			<tr>
				<td>类型</td>
				<td><select name="notify_type">
						<option value="SYSTEM">系统消息(SYSTEM)</option>
						<option value="BUSINESS_A">成功发货(BUSINESS_A)</option>
						<option value="BUSINESS_B">取消订单(BUSINESS_B)</option>
						<option value="BUSINESS_C">回复评价(BUSINESS_C)</option>
						<option value="BUSINESS_D">订单已签收(BUSINESS_D)</option>
						<option value="BUSINESS_E">退款成功(BUSINESS_E)</option>
						<option value="BUSINESS_F">退款失败(BUSINESS_F)</option>
						<option value="BUSINESS_G">注册成功(BUSINESS_G)</option>
						<option value="BUSINESS_H">活动提醒(BUSINESS_H)</option>
						<option value="BUSINESS_I">优惠券即将过期(BUSINESS_I)</option>
						<option value="BUSINESS_J">认证成功(BUSINESS_J)</option>
						<option value="BUSINESS_K">认证失败(BUSINESS_K)</option>
						<option value="ACTIVITY">活动消息(ACTIVITY)</option>
						<option value="OTHER">其他消息(OTHER)</option>
				</select></td>
			</tr>
			<tr>
				<td>title</td>
				<td><textarea name="title" rows="7" cols="50"></textarea></td>
			</tr>
			<tr>
				<td>refer_id</td>
				<td><input name="refer_id" type="text"></td>
			</tr>
			<tr>
				<td>refer_url</td>
				<td><input name="refer_url" type="text"></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit"></td>
			</tr>
		</table>
	</form>
	<div id="message" style="margin: 50px;"></div>
	<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
	<script
		src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.2.1/jquery.form.min.js"></script>
	<script type="text/javascript">
		$(function() {
			$('#myForm').ajaxForm({
				beforeSubmit : function() {
					$("#message").html("");
				},
				success : function showResponse(responseText) {
					$("#message").html(responseText);
				}
			});
		});

		
		
	</script>
</body>
</html>